package com.bw.service;

import com.bw.bean.Student;
import com.bw.dao.StuDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class StuDaoServiceImpl implements StuDaoService {
    @Autowired
    StuDao dao;
    @Override
    public int adds(Student stu) {
        return dao.adds(stu);
    }

    @Override
    public List<Student> showall() {
        return dao.showall();
    }
}
